home *** CD-ROM | disk | FTP | other *** search
- When you want to copy two arrays use the following:
-
- Dim a(n),b(n)
- Copy Varptr(a(0)),Varptr(a(0))+n*4 to varptr(b(0))
-
- Try it.It's ultra fast.Try to compare it with:
- For x=1 to n
- b(x)=a(x)
- Next
-
- When you want to initialize an array just use:
- Fill varptr(a(0)) to varptr(a(0))+n*4,0 ; fill it with 0
-
- You will notice the difference!
-
- Also deek(varptr(a(0))-4) gives N!
- Gregory.
-
-